package com.aash.web.wicket;

import org.apache.wicket.Application;
import org.apache.wicket.DefaultPageManagerProvider;
import org.apache.wicket.page.DefaultPageManagerContext;
import org.apache.wicket.pageStore.IDataStore;
import org.apache.wicket.pageStore.memory.HttpSessionDataStore;
import org.apache.wicket.pageStore.memory.PageNumberEvictionStrategy;

public class CustomPageManagerProvider extends DefaultPageManagerProvider {

	public CustomPageManagerProvider(Application application) {
		super(application);
	}

	protected IDataStore newDataStore() {
		return new HttpSessionDataStore(new DefaultPageManagerContext(),new PageNumberEvictionStrategy(2));
	}
}
